
package com.luck.org.entity;

import java.io.Serializable;
import java.util.Date;

/** 
 * @hibernate.class table="SYS_MENU"
 * 说明:
 * Copyright: Copyright (c) 2010
 * @author zhangwenrui 2010-8-4 下午03:14:30
 * @version 1.0
 */
public class SysMenu implements Serializable {
	private static final long serialVersionUID = -345287428087090210L;
	private Long id;
	private Long parentId;
	private SysMenu parentMenu;
	private String menuName;//模块名称
	private String url;//模块URL
	private String url1;//模块URL1
	private String url2;//模块URL2
	private String treeNo; //排序
	private String rootFlag;//系统标识,根菜单：ROOT,后台管理ROOT_ORG,业务资源:ROOT_RES,前台应用:ROOT_BS
	private String resItemId;//资源菜单项标识ID  用于唯一的标识一个资源菜单
	private String menuLevel;//菜单 级别,根菜单：0，一级：1
	private String isView;//是否显示于菜单
	private String isLeaf;//是否是叶子节点
	private String isFilter;//是否需要过滤
	private Long operUser;//操作人
	private Date operTime;//操作时间
	private boolean check;//处理权限编辑时用

	/**
     * @hibernate.id generator-class = "sequence" 
     * @hibernate.generator-param name="sequence" value="seq_sys_menu"
     * @hibernate.column sql-type="NUMBER(22,0)" name="id"
     * @return
     */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

    /**
     * @hibernate.many-to-one class = "com.luck.org.entity.SysMenu" column="parent_id" insert="false" update="false"
     * @return
     */
	public SysMenu getParentMenu() {
		return parentMenu;
	}
	public void setParentMenu(SysMenu parentMenu) {
		this.parentMenu = parentMenu;
	}

	/**
     * @hibernate.property length="20" column="res_item_id"
     */
	public String getResItemId() {
		return resItemId;
	}
	public void setResItemId(String resItemId) {
		this.resItemId = resItemId;
	}
	/**
     * @hibernate.property length="2" column="menu_level"
     */
	public String getMenuLevel() {
		return menuLevel;
	}
	public void setMenuLevel(String menuLevel) {
		this.menuLevel = menuLevel;
	}

	
	/**
     * @hibernate.property length="50" column="tree_no"
     */
	public String getTreeNo() {
		return treeNo;
	}
	public void setTreeNo(String treeNo) {
		this.treeNo = treeNo;
	}
	/**
     * @hibernate.property length="20" column="root_flag"
     */
	public String getRootFlag() {
		return rootFlag;
	}
	public void setRootFlag(String rootFlag) {
		this.rootFlag = rootFlag;
	}
	/**
     * @hibernate.property length="16" column="oper_user"
     */
	public Long getOperUser() {
		return operUser;
	}
	public void setOperUser(Long operUser) {
		this.operUser = operUser;
	}
	/**
     * @hibernate.property column="oper_time"
     */
	public Date getOperTime() {
		return operTime;
	}
	public void setOperTime(Date operTime) {
		this.operTime = operTime;
	}
	/**
     * @hibernate.property length="16" column="parent_id"
     */
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	/**
     * @hibernate.property length="40" column="menu_name"
     */
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	/**
     * @hibernate.property length="50" column="url"
     */
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	/**
     * @hibernate.property length="50" column="url1"
     */
	public String getUrl1() {
		return url1;
	}
	public void setUrl1(String url1) {
		this.url1 = url1;
	}
	/**
     * @hibernate.property length="50" column="url2"
     */
	public String getUrl2() {
		return url2;
	}
	public void setUrl2(String url2) {
		this.url2 = url2;
	}
	/**
     * @hibernate.property length="2" column="is_view"
     */
	public String getIsView() {
		return isView;
	}
	public void setIsView(String isView) {
		this.isView = isView;
	}
	/**
     * @hibernate.property length="2" column="is_leaf"
     */
	public String getIsLeaf() {
		return isLeaf;
	}
	public void setIsLeaf(String isLeaf) {
		this.isLeaf = isLeaf;
	}
	/**
     * @hibernate.property length="2" column="is_filter"
     */
	public String getIsFilter() {
		return isFilter;
	}
	public void setIsFilter(String isFilter) {
		this.isFilter = isFilter;
	}
	public boolean isCheck() {
		return check;
	}
	public void setCheck(boolean check) {
		this.check = check;
	}
	
	
}
